package com.moli.iov.open.service.impl;

import com.moli.iov.base.model.dto.req.VehicleBaseAuthDto;
import com.moli.iov.base.remote.IVehicleBaseRemoteService;
import com.moli.iov.open.service.VehicleService;
import com.moli.iov.rest.RestResponse;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

/**
 * The type Vehicle service.
 *
 * @author wanghualin
 * @date 2020 -06-15 12:01:10
 */
@Service
public class VehicleServiceImpl implements VehicleService {
    @Reference(group = "${service.group}", check = false)
    private IVehicleBaseRemoteService iVehicleBaseRemoteService;


    @Override
    public RestResponse updateAuthVehicle(VehicleBaseAuthDto VehicleBaseAuthDto) {
        return iVehicleBaseRemoteService.vehicleBaseIsAuthorized(VehicleBaseAuthDto);
    }
}
